//
//  SinaAccountViewModel.h
//  oc微博
//
//  Created by 安陆与 on 16/1/19.
//  Copyright © 2016年 安陆与. All rights reserved.
//

#import <Foundation/Foundation.h>
@class SinaAccountModel;

@interface SinaAccountViewModel : NSObject

@property (nonatomic,strong) SinaAccountModel *model;

@property (nonatomic,copy) NSString *access_token;

@property (nonatomic,copy) NSString *profile_image_url;

//定义一个是否登录了得bool值
@property (nonatomic, assign) BOOL isLogin;

+(instancetype)shareAccount;
//获取code
-(void)getAccessTokenWithCode:(NSString *)code;
//获取info
-(void)getPersonInfo:(SinaAccountModel *)account;

@end
